﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IEnumerable<Bussiness.Product>>" %>
<%@ Import Namespace="KiwiShopping.Models"%>
<%@ Import Namespace="System.Web.Mvc"%>

<%--<script src="http://richhollis.github.com/vticker/js/jquery-1.7.2.min.js"></script>--%>
<script src="../../Scripts/js/jquery.vticker.js"></script>

<%--<script type="text/javascript" src="../../Scripts/js/jquery.vticker.js" />--%>

 <script language="javascript" type="text/javascript">
     $(function () {
         $('#news-container').vTicker({
             speed: 5000,
             pause: 0,
             animation: 'fade',
             mousePause: true,
             showItems: 3
         });
     });
 </script>   

        <div class="title"><span class="title_icon"><img src="../../Content/images/bullet4.gif" alt="" /></span>Sale</div>
     <div class="clear">
            </div>
        <div id="news-container" style="padding:0px">

     <ul>
         <% foreach (var product in ((IEnumerable<Bussiness.Product>)ViewData["Sale_Products"]))
            { %>
        <li class="new_prod_box"> <a href="/Products/ChiTietSanPham/?ID=<%= product.ID%>">Mã:  <%= product.Code %></a>
          <div class="new_prod_bg"> <span class="new_icon" style="color:#e93724;font-style:italic;font-weight:bold ;padding: 5px 5px 0 0">-10%</span> <a href="/Products/ChiTietSanPham/?ID=<%= product.ID%>"><img src="<%= product.PathImage %>" alt="" class="thumb" border="0" width="100" height="100"/></a> </div>
        </li> 

        <%} %>
       </ul>  
</div>

        
        
 
